<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="<?php echo __PUBLIC__?>/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="<?php echo __PUBLIC__?>/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="<?php echo __PUBLIC__?>/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="<?php echo __PUBLIC__?>/Flat/img/favicon.ico">
	    <!-- 新 Bootstrap 核心 CSS 文件 -->
		<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
		<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
		<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
		<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
		<script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
		<table class="table table-hover">
			<tr class="active">
			  <th width="30">sid</th>
			  <th>学生姓名</th>
			  <th>qq</th>
			  <th>电话</th>
			  <th>状态</th>
			  <th>操作</th>
			</tr>
			<?php foreach ($data as $k=>$v){?>
				<tr>
					<td><?php echo $v['sid']?></td>
					<td><?php echo $v['sname']?></td>
					<td><?php echo $v['qq']?></td>
					<td><?php echo $v['phone']?></td>
					<td>
						<?php if($v['state']==0){?>
                
							未联系
						<?php }else if($v['state']==1){?>
							已联系，没意向
						<?php }else if($v['state']==2){?>
							需继续联系
						<?php }else if($v['state']==3){?>
							已报名
						
               <?php }?>
					</td>
					<td>
						<a href="<?php echo U('editStu',array('sid'=>$v['sid']))?>" class="btn btn btn-primary">修改信息</a>
						<div class="btn-group">
							<button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
							状态<span class="caret"></span>
							</button>
							<ul class="dropdown-menu">
								<li><a href="<?php echo U('editStat',array('sid'=>$v['sid'],'state'=>1))?>">没意向</a></li>
								<li><a href="<?php echo U('editStat',array('sid'=>$v['sid'],'state'=>2))?>">继续联系</a></li>
								<li><a href="<?php echo U('editStat',array('sid'=>$v['sid'],'state'=>3))?>">已报名</a></li>
							</ul>
						</div>
					</td>
				</tr>
			<?php }?>
		</table>
		
	</body>
</html>
